﻿using CMS.Services.DTO.User;
using CMS.Services.Models;
using Zinnia.Lite.Injection;

namespace CMS.Services.Business.User
{
    /// <summary>
    /// 用户服务接口
    /// </summary>
    public interface IUserServices : IUnitOfWorkDependency
    {
        /// <summary>
        /// 用户名是否存在
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool UserNameIsExist(RegisterRequestUserModel model);
        /// <summary>
        /// 用户注册
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        UserModel RegisterUser(RegisterRequestUserModel model);
        /// <summary>
        /// 获取注册用户信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        RegisterReponseUserModel GetRegisterUserModel(RegisterRequestUserModel model);
    }
}
